package com.luoqiz.demo.userManage.service.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luoqiz.demo.userManage.dao.SysUserMapper;
import com.luoqiz.demo.userManage.model.SysUser;
import com.luoqiz.demo.userManage.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private SysUserMapper sysUserMapper;
	@Override
	public SysUser querySysUser(int id) {
		return sysUserMapper.selectByPrimaryKey(id);
	}
	@Override
	public int saveSysUser(SysUser sysUser) {
		return sysUserMapper.insertSelective(sysUser);
	}

}
